﻿Imports System.ComponentModel
Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Globalization
Imports System.Data.Entity

Public Class Coupon
    <Key()> _
    <DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)> _
    Public Property ID As Integer

    Public Property UserName As String
    Public Property SalesPromotionID As Integer
    Public Property Activated As Date
    Public Property Used As Date
    Public Property Active As Boolean
End Class

Public Class CouponDBContext
    Inherits DbContext
    Public Property Coupons() As DbSet(Of Coupon)
End Class